<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<body>
<a href="create-employee.jsp">Create</a><br/>
<table width="200" border="0">
  <tr bgcolor="#CCCCCC">
    <td></td>
    <td>Last Name</td>
    <td>First Name</td>
    <td>Contract Date</td>
    <td>Role</td>
    <td>State</td>
  </tr>
  <s:iterator value="employees">
  	<tr >
    	<td>
    		<s:a action="remove-employee-%{id}">remove</s:a>
    		<s:a action="edit-employee-%{id}">edit</s:a>
    	</td>
    	<td><s:property value="lastName" /></td>
    	<td><s:property value="firstName" /></td>
    	<td><s:date name="contractDate" format="dd/MM/yyyy"/></td>
    	<td><s:property value="role"/></td>
    	<td><s:property value="state"/></td>
  </tr>
  </s:iterator>
</table>
</body>
</html>
